<?php
	$con = mysqli_connect("localhost", "root", "1", "dbtest");

	// Check connection
	if (mysqli_connect_errno()) {
		header("location:error.php?err=1");
	} else {
		echo "Connect success";
	}
?>